<template>
  <div class="container" >
    <div class="title1" >已失效</div>
    <div v-for="(item ,index) in list" :key="index">
      <div class="card" v-if="item.status!==0">
        <div class="title">{{item.name}}</div>
        <div class="desc" v-if="item.describe">{{item.describe}}</div>
        <div class="date">{{item.validity_start_time}}-{{item.validity_end_time}}</div>
        <!-- <div class="transferBtn">转让</div>
        <div class="sellBtn">挂售</div>-->
        <!-- 已挂售 -->
        <img
          src="https://img.ameimeika.com/h5_images/mp_images/3.3/youchuo_bottom1.png"
          alt
          class="youchuo"
          v-if="item.status == 1"
        />
        <!-- 已售卖 -->
          <img
          src="https://mmkapp.oss-cn-beijing.aliyuncs.com/h5_images/mp_images/3.3/youchuo_bottom4.png"
          alt
          class="youchuo"
          v-if="item.status == 2"
        />
        <!-- 已转让-->
        <img
          src="https://mmkapp.oss-cn-beijing.aliyuncs.com/h5_images/mp_images/3.3/youchuo_bottom2.png"
          alt
          class="youchuo"
          v-if="item.status == 3"
        />
        <!-- 已过期 -->
        <img
          src="https://mmkapp.oss-cn-beijing.aliyuncs.com/h5_images/mp_images/3.3/youchuo_bottom3.png"
          alt
          class="youchuo"
          v-if="item.status == 4"
        />
        <!-- 待退款 -->
         <img
          src="https://mmkapp.oss-cn-beijing.aliyuncs.com/h5_images/mp_images/3.3/youchuo_bottom6.png"
          alt
          class="youchuo"
          v-if="item.status == 6"
        />
      </div>
    </div>
  </div>
</template>

<script>
import common from "@/assets/js/mmk_common.js";
export default {
  data() {
    return {
      imgUrl: "https://img.ameimeika.com/" //img 域名
    };
  },
  props: {
    list: ""
  },
  methods: {},
  watch: {},
  onLoad() {
    // console.log(this.list);
  },
  destroyed() {}
};
</script>


<style lang="less" scoped>
.container {
  // background: #f3f4f6;
  height: auto;
  box-sizing: border-box;
  padding: 0 12px ;
  .title1 {
    width: 100%;
    height: 20px;
    line-height: 20px;
    box-sizing: border-box;
    padding: 0 12px;
    color: rgba(102, 102, 102, 1);
    font-size: 14px;
    // margin-top: 7px;
    margin-bottom: 12px;
  }
  .card {
    height: 155px;
    width: 100%;
    box-sizing: border-box;
    background: url("https://mmkapp.oss-cn-beijing.aliyuncs.com/h5_images/mp_images/3.3/card_gray.png")
      center bottom no-repeat;
    background-size: 100% 100%;
    color: #fff;
    border-radius: 8px;
    position: relative;
    padding: 20px 16px 14px 20px;
    margin-bottom: 12px;
    &.bg1 {
      background: url("https://mmkapp.oss-cn-beijing.aliyuncs.com/h5_images/mp_images/3.3/purple_cardbg.png")
        center bottom no-repeat;
      background-size: 100% 100%;
    }
    &.bg2 {
      background: url("https://mmkapp.oss-cn-beijing.aliyuncs.com/h5_images/lifebeauty/queen/bg_card2%402x.png")
        center bottom no-repeat;
      background-size: 100% 100%;
    }
    .title {
      font-size: 18px;
      font-weight: 500;
      color: rgba(255, 255, 255, 1);
      margin-bottom: 5px;
    }
    .desc {
      width: 85%;
      height: 40px;
      font-size: 14px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.7);
      line-height: 20px;
      margin-bottom: 35px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .date {
      margin-top: 30px;
      color: #666666;
    }
    .transferBtn {
      width: 40px;
      height: 26px;
      background: rgba(255, 255, 255, 0.7);
      border-radius: 6px;
      font-size: 12px;
      color: rgba(94, 46, 28, 1);
      text-align: center;
      line-height: 26px;
      position: absolute;
      bottom: 8px;
      right: 12px;
    }
    .sellBtn {
      width: 40px;
      height: 26px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 1);
      color: rgba(255, 255, 255, 1);
      font-size: 12px;
      line-height: 26px;
      text-align: center;
      position: absolute;
      bottom: 6px;
      right: 62px;
    }
    .youchuo {
      width: 64px;
      height: 63px;
      opacity: 0.7656;
      position: absolute;
      bottom: 0;
      right: 0;
    }
  }
}
</style>


